 
-----------------------------
Generating Binomial N samples
p =  0.9 N =  5
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 16:20:48 EDT 2014
728746753
  
[1] 0.9
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.0003268 0.0027956 0.0186844 0.1129124
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 7.262222e-05 1.350531e-04 1.929409e-04 2.459579e-04
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1]  1.505668e-16 -1.457068e-04  3.558628e-04 -2.390161e-03
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] -7.038976e-06  3.674750e-06 -5.206507e-06
                         test   P.value KS.test
1                  Chi Square 0.9646864  Passed
2            Likelihood Ratio 0.9646864  Passed
3               Freeman-Tukey 0.3724700  Passed
4 Power Divergence (lambda=2) 0.9761369  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.9 N =  5
 
[1] 0.9
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.000150 0.001330 0.009276 0.058030
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 3.333333e-05 6.425121e-05 9.578686e-05 1.264072e-04
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1]  3.495870e-16 -2.002250e-05  2.310090e-04 -1.802199e-03

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0016, p-value = 0.4014
alternative hypothesis: two-sided

